﻿namespace Zive.Color {

    public static class ExtensionMethods {

        public static LabColor ToLabColor( this RgbColor color ) {
            return LabColorConverter.Convert( XyzColorConverter.Convert( color ) );
        }

        public static LabColor ToLabColor( this XyzColor color ) {
            return LabColorConverter.Convert( color );
        }

        public static RgbColor ToSrgbColor( this LabColor color ) {
            return XyzColorConverter.Convert( LabColorConverter.Convert( color ) );
        }

        public static RgbColor ToSrgbColor( this XyzColor color ) {
            return XyzColorConverter.Convert( color );
        }

        public static XyzColor ToXyzColor( this RgbColor color ) {
            return XyzColorConverter.Convert( color );
        }

        public static XyzColor ToXyzColor( this LabColor color ) {
            return LabColorConverter.Convert( color );
        }

    }

}
